<?php

return [
'exception_tmpl' => APP_PATH . 'tours' . DS . 'think_exception.tpl',  // 异常页面的模板文件
    'parse_str' => [
        '__TOURS__' => '/public/tours', // 更改默认的/Public 替换规则
        '__USERS__' => '/public/user',
    ],
    'HTML_CACHE_ON' => false, // 开启静态缓存
    'HTML_CACHE_TIME' => 3600, // 全局静态缓存有效期（秒）
    'HTML_FILE_SUFFIX' => '.html', // 设置静态缓存文件后缀
    'HTML_CACHE_RULES' => [// 定义静态缓存规则
        // 定义格式1 数组方式
        'Index:index' => ['index'],
        'Linesort:day' => ['{$_SERVER.REQUEST_URI|md5}'],
        'Linesort:line_show' => ['{$_SERVER.REQUEST_URI|md5}'],
        'Linesort:label_show' => ['{$_SERVER.REQUEST_URI|md5}'],
	'Linesort:search' => ['{$_SERVER.REQUEST_URI|md5}'],
	'Linesort:jingdian' => ['{$_SERVER.REQUEST_URI|md5}'],
	'Linesort:jingdian_index' => ['{$_SERVER.REQUEST_URI|md5}'],
	'Line:index' => ['{$_SERVER.REQUEST_URI|md5}'],
	'Line:print_trip' => ['dayin{id}'],
	'News:newslist' => ['{$_SERVER.REQUEST_URI|md5}'],
	'News:show_news' => ['news{id}'],
    ],
    
    // 默认跳转页面对应的模板文件
    'dispatch_success_tmpl' => MODULE_PATH . '/view' . DS . 'public/success.html',
    'dispatch_error_tmpl' => MODULE_PATH . '/view' . DS . 'public/error.html',
    'default_filter'=> ['htmlspecialchars'],
    'empty_controller'      => 'Error',
];
